package com.teemo.dp.factorymethod.demo3.factory;

import com.teemo.dp.factorymethod.demo3.computer.Computer;
import com.teemo.dp.factorymethod.demo3.computer.DesktopComputer;

/**
 * @author Teemo
 */
public class DesktopComputerFactory implements ComputerFactory{
    @Override
    public Computer createComputer() {
        DesktopComputer desktopComputer = new DesktopComputer();
        desktopComputer.setCpu("i7");
        desktopComputer.setMemory("16GB");
        desktopComputer.setHardDisk("1TB");
        return desktopComputer;
    }
}
